package com.itheima.test4;

public class GirlFirend {
    //属性
    private int age;       //默认初始化为0

    public void method() {
        int age=10;
        System.out.println(age);    //就近原则
        System.out.println(this.age);   //此时访问的是0
    }
}
